#pragma once
#include "AbstractLoger.h"
#include <fstream>

using namespace std;

class LibLogerImpl:public AbstractLoger
{
public:
	LibLogerImpl(void);
	~LibLogerImpl(void);
	virtual void InfoOutput(LOGLEVEL eLevel,std::string str);

private:
	static string GetCurrentDateTimeString();
	static string GetCurrentDateString();
	static string GetTodayLogFilePath();
	bool IsNewDayLog();
	void SwitchToNewDayLogFile();
	std::ofstream & GetCurrentLogFile();
private:
	ofstream m_logFile;
	string m_strCurrentLogFilePaht;
};
